package com.weixing.mall.provider.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.ProductStockTmp;
import com.weixing.mall.provider.model.query.act.ProductStockTmpQuery;
import com.weixing.mall.provider.model.vo.act.ProductStockTmpVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库模块-商品库存表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface ProductStockTmpMapper extends BaseMapper<ProductStockTmp> {

    IPage<ProductStockTmpVo> selectByDepotId(@Param("pg") Page page, Long depotId);
    IPage<ProductStockTmpVo> selectOfPage(@Param("pg") Page page, @Param("qs") ProductStockTmpQuery productStockTmpQuery);

    List<ProductStockTmpVo> selectOfPage(@Param("qs") ProductStockTmpQuery productStockTmpQuery);
    List<ProductStockTmpVo> selectByDepotId (Long depotId);

    List<ProductStockTmpVo> selectByIds(@Param("array")Long []ids);

    void delwhole();
}
